<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>css 继承</title>
  <style>
    body {
      background-color: green;
    }
  </style>
</head>
<body>
  <p>Hello World</p>
  <div style="overflow:hidden;font-size: 28px;height: 300px;background-color: yellow;color: pink;">你好
    <p style="background-color: red; color: inherit;">大唐诡事录</p>
  </div>
  <div>1111</div>
</body>
</html>